<template>
  <div class="container">
    <Category title="美食" :listData="foods">
      <img class="img" src="@/assets/img/mutton-shashlik.jpg" alt="">
    </Category>
    <Category title="游戏" >
      <ul>
        <li v-for="(item,index) in games" :key="index">{{item}}</li>
      </ul>
    </Category>
    <Category title="电影" >
      <!-- <video controls
        src="@/assets/video/玛卡巴卡(高清).mp4"
      >
      </video> -->
      <video controls src="http://clips.vorwaerts-gmbh.de/big_buck_bunny.mp4"></video>
    </Category>
  </div>
</template>

<script>
  import Category from './components/Category.vue'
  export default {
    name:'App',
    components:{Category},
    data(){
      return {
        foods:['炸鸡','啤酒','小龙虾','烧烤','牛排'],
        games:['红色警戒','王者荣耀','英雄联盟','冒险岛','穿越火线'],
        films:['《后天》','《2012》','《坠落》','《环太平洋》'],
      }
    }
  }
</script>

<style>
  .container{
    display: flex;
    justify-content: space-around;
  }
</style>
<style scoped>
  video{
    width: 100%;
  }
</style>
